package com.stockz.core.launch;

import com.stockz.core.util.SpringUtil;
import com.stockz.ui.swing.charting.util.SwingUtil;

public class Main {

	public static void main(String[] args) {
		try {
			Runtime.getRuntime().addShutdownHook(new DatabaseShutdownHook());
			Launcher launcher = SpringUtil.getApplicationContext().getBean(Launcher.class);
			launcher.launch();
		} catch (Exception e) {
			SwingUtil.reportException(e);
		}
	}
	
}
